<?php
/* 
	[BuyPg] (C) 2010-2011 Buypg
	$Id: YouhuiModel.class.php 2011-12-19 16:46:47 wufujun $
 */

if (!defined('THINK_PATH')){
	exit('Access Denied');
}

class YouhuiModel extends CommonModel{
	//自动验证
	protected $_validate = array(
		array('title','require','优惠名称不能为空',0),
		array('cid','require','分类不能为空',0),
		array('siteid','require','所属网站ID不能为空',0),
		array('price','require','优惠价格不能为空',0),
	);
	
	protected $_auto = array(
		array('dateline' , 'time' ,1, 'function'),
	);
}
?>